<%@ Page CodeBehind="InputBuyNowParameters.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="ASPDotNetSamples.InputBuyNowParameters" %>
<%@ Import namespace="ASPDotNetSamples"%>
<HTML>
	<HEAD>
		<title>Buy Now</title>
		<LINK href="sdk.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<center>
			<form id="InputBuyNowParametersForm" runat="server">
				<br>
				<font face="Verdana" color="black" size="2"><b>Enter Parameters To Create An Encrypted 
						Buy Now Button </b></font>
				<br>
				<font face="Verdana" color="black" size="2"></font>
				<table id="info" cellSpacing="2" cellPadding="2" border="0">
					<tr>
						<td>Enter the required parameters below to create an encrypted buy now button.
						</td>
					</tr>
					<tr>
						<td>To learn more about optional variables for buy now buttons, review the Website 
							Payments Standard on the <A href="https://www.paypal.com/IntegrationCenter/ic_standard_home.html#BuyNowButtons"
								target="_blank">PayPal Integration Center</A>.
						</td>
					</tr>
					<tr>
						<td>Variables that are not editable are set in the constants.aspx file. (view your 
							complete credentials for Website Payments Standard <A href="EWPCredentials.aspx" target="_blank">
								here</A>)<br>
						</td>
					</tr>
				</table>
				<br>
				<table>
					<tr>
						<td align="left">cmd:</td>
						<td align="left">_xclick</td>
					</tr>
					<tr>
						<td align="left">PayPal Account:</td>
						<td align="left">sdk.seller@gmail.com</td>
					</tr>
					<tr>
						<td align="left">Item_name:</td>
						<td align="left"><asp:textbox id="ItemNameTextBox" runat="server" Width="216px" MaxLength="30">Widget</asp:textbox></td>
					</tr>
					<tr>
						<td align="left">Item_number:</td>
						<td align="left"><asp:textbox id="ItemNumberTextBox" runat="server" Width="216px" MaxLength="30">123456789</asp:textbox></td>
					</tr>
					<tr>
						<td align="left">amount:</td>
						<td align="left"><asp:textbox id="AmountTextBox" runat="server" Width="72px" MaxLength="6">19.99</asp:textbox></td>
					</tr>
					<tr>
						<td align="left" height="7">currency_code:</td>
						<td align="left" height="7"><asp:dropdownlist id="CurrencyDropDownList" runat="server">
								<asp:ListItem value="USD" Selected="True">USD </asp:ListItem>
								<asp:ListItem value="GBP">GBP</asp:ListItem>
								<asp:ListItem value="EUR">EUR</asp:ListItem>
								<asp:ListItem value="CAD">CAD</asp:ListItem>
								<asp:ListItem value="AUD">AUD</asp:ListItem>
							</asp:dropdownlist></td>
					</tr>
					<tr>
						<td align="left">return:</td>
						<td align="left"><asp:literal id=ReturnUrlLiteral 
       Runat="server" 
      Text='<%#"http://" + Request.Url.Host + Response.ApplyAppPathModifier( "PDTResponse.aspx" )%>'></asp:literal></td>
					</tr>
					<tr>
						<td align="left">cancel_return:</td>
						<td align="left"><asp:literal id=CancelUrlLiteral 
       Runat="server" 
      Text='<%#"http://" + Request.Url.Host + Response.ApplyAppPathModifier( "BuyNow.aspx" )%>'></asp:literal></td>
					</tr>
					<tr>
						<td align="left">notify_url:</td>
						<td align="left"><asp:literal id=NotifyUrlLiteral 
       Runat="server" 
      Text='<%#"http://" + Request.Url.Host + Request.ApplicationPath + "/NotifyUrl.ashx"%>'></asp:literal></td>
					</tr>
					<TR>
						<TD align="left">Endpoint:</TD>
						<TD align="left">https://www.sandbox.paypal.com/cgi-bin/webscr</TD>
					</TR>
					<tr>
						<td align="left"><input type="hidden" value="PP-WPS_ASPNET" name="bn"></td>
					</tr>
					<tr>
					</tr>
					<tr>
						<td align="left"><input type="hidden" value="PDT" name="sample_type"></td>
					</tr>
					<tr>
						<td align="left">Click Submit to create button:</td>
						<td align="left"><asp:button id="SubmitButton" onclick="SubmitButton_Click" runat="server" Text="Submit"></asp:button></td>
					</tr>
				</table>
				</FONT><asp:requiredfieldvalidator id="Requiredfieldvalidator1" Runat="server" ErrorMessage="ItemName is required"
					ControlToValidate="ItemNameTextBox"></asp:requiredfieldvalidator><asp:requiredfieldvalidator id="Requiredfieldvalidator2" Runat="server" ErrorMessage="ItemNumber is required"
					ControlToValidate="ItemNumberTextBox"></asp:requiredfieldvalidator><asp:requiredfieldvalidator id="Requiredfieldvalidator3" Runat="server" ErrorMessage="Amount is required" ControlToValidate="AmountTextBox"></asp:requiredfieldvalidator></form>
		</center>
		<font size="2" color="black" face="Verdana"><a href="Default.aspx">Home</a></font>
	</body>
</HTML>
